#include <iostream>

using namespace std;

int main()
{

  cout << "Please input your tax filer type:" << endl;
  cout << "Single filers: 0,\nMarried file jointly: 1,\nMarried file separately: 2,\nHead of household: 3.\n\nYour type: ";

  int type;
  cin >> type;

  double salary;
  cout << "Please enter your annual salary: ";
  cin >> salary;
  cout << "Your annual salary is: " << salary << "." << endl;

  if (type == 0)
  {
    cout << "Your type is: 0. Single filers." << endl;
  }
  else if (type == 1)
  {
    cout << "Your type is: 1. Married file jointly." << endl;
  }
  else if (type == 2)
  {
    cout << "Your type is: 2. Married file separately." << endl;
  }
  else if(type == 3)
  {
    cout << "Your type is: 3. Head of household." << endl;
  }
  else
  {
    cout << "Your type is: undefinded!" << endl;
    return 1;
  }

  //TODO: read book page 105 to finish the exercise

  return 0;
}
